﻿import instance from '../../utils/request'

/**
 * 查找所有
 * @param findPage
 * @returns {*}
 */
export function promotionPage() {
    return instance.get("/Promotion/findAll")
}

/**
 * 分页条件查询
 * @param conditionInfo
 * @returns {*}
 */
export function findPageCondition(pfc) {
    return instance.get("/Promotion/findCondition",{params:pfc})
}

/**
 * 按照id查询信息
 * @param intege
 * @returns {*}
 */
export function findId(id) {
    return instance.get("/Promotion//findid",{params:id})
}

/**
 *添加
 * @param pfc
 * @returns {*}
 */
export  function addPromotuon(pfc) {
    return instance.post("/Promotion/add",pfc)
}

/**
 * 修改
 * @param pfc
 * @returns {*}
 */
export  function updatePromotuon(pfc) {
    return instance.post("/Promotion/update",pfc)
}

/**
 * 按id删除
 * @param pfc
 * @returns {*}
 */
export  function deletePromotuon(id) {
    return instance.get("/Promotion/delete",{params:{id:id}})
}


/**
 * 分页查询商品
 * @param pfc
 * @returns {*}
 */
export function findgood(pfc) {
    return instance.get("/goodsinfo2/findGood",{params:pfc})
}